package com.perceptivesoftware.licensing.client.common.util;

import com.google.gwt.user.client.rpc.IsSerializable;

public enum SystemParmType implements IsSerializable {
	EMAIL_HOST(1L, "Email Server");

	private Long val;
	private String desc;

	private SystemParmType(final Long val, final String desc) {
		this.val = val;
		this.desc = desc;
	}

	public Long getVal() {
		return val;
	}

	public String getDesc() {
		return desc;
	}

	public static SystemParmType getEnumForType(final Long val) {
		for (final SystemParmType theEnum : SystemParmType.values()) {
			if (theEnum.getVal().equals(val)) {
				return theEnum;
			}
		}
		return null;
	}
}